package com.cskaoyan.javase.object._7packaging;
/**
 * 举例
 *
 * @since 21:17
 * @author wuguidong@cskaoyan.onaliyun.com
 */
public class Demo2 {
    public static void main(String[] args) {
        // byte类型最大值 = 127
        System.out.println(Byte.MAX_VALUE + 1);
        System.out.println(((byte) (Byte.MAX_VALUE + 1)));
        System.out.println(Character.MAX_VALUE + 1);
        // Numeric overflow in expression
        System.out.println(Integer.MAX_VALUE + 1);
        System.out.println(Long.MAX_VALUE + 1);
    }
}
